package com.wg.springboot;

import com.wg.springboot.model.Student;
import com.wg.springboot.service.StudentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Slf4j
@Controller
public class StudentController {
    @Autowired
    private StudentService studentService;
    @RequestMapping(value = "/say")
    public @ResponseBody Object say(Integer id){
        Student student=studentService.selectByPrimaryKey(id);

        log.debug("logback测试测试");
        return student;
    }
}
